<%@ include file="uploadcommon.inc" %>
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td class="td_center"><span class="title-big-b-center">
          <%= label.getLabelName("L_Deliverys") + label.getLabelName("L_Upload")%>
          </span></td>
         <%
          	HashMap userinfo = (HashMap)session.getAttribute("userinfo");
		    String  issalesman = (String) userinfo.get("issalesman");
			java.util.Calendar cal = java.util.Calendar.getInstance();    
			String year = cal.get(Calendar.YEAR)+"";   
			String month = cal.get(Calendar.MONTH)+1+""; 
			session.setAttribute("year",year);
			session.setAttribute("month",month);
		   %>
        </tr>
      </table>
      <table width="1500" border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellpadding="0" width="100%">
        <tr class="deepblue-left">
            <td class="title_center" width="100"><%= label.getLabelName("L_SortNO")%></td>
			<td class="title_center" width="100"><%= label.getLabelName("L_Month")%></td>
            <td class="title_center" width="100"><%= label.getLabelName("L_vendorcode1")%></td>
            <td class="title_center" width="100"><%= label.getLabelName("L_orgnameOne")%></td>
            <td class="title_center" width="100"><%= label.getLabelName("L_areaname")%></td>
            <td class="title_center" width="100"><%= label.getLabelName("L_ProductCode")%></td>           
            <td class="title_center" width="100"><%= label.getLabelName("L_ProdName")%></td>              
            <td class="title_center" width="100"><%= label.getLabelName("L_Spec")%></td>           
            <td class="title_center" width="100"><%= label.getLabelName("L_Pakages")%></td>              
            <td class="title_center" width="100"><%= label.getLabelName("L_Qty")%></td>              
            <td class="title_center" width="100"><%= label.getLabelName("L_UnitPrice")%></td>
            <td class="title_center" width="100"><%= label.getLabelName("L_Amount")%></td>
			<td class="title_center" width="100"><%= label.getLabelName("L_Date")%></td>
        </tr>
        <logic:iterate id="deliverysinfo" collection="<%= deliverys %>"  indexId="idx">
        <%
          HashMap deliverysmap = (HashMap)pageContext.getAttribute("deliverysinfo");
          if((idx.intValue())%2 == 1)
          {
            	strClassType = "td-listrom";
          }else{
            	strClassType = "";
          }
        %>
       	<tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'"  class="<%=JspHelper.filterNull( strClassType )%>">
            <td>&nbsp;<%=idx.intValue()+1%></td>
            <td>&nbsp;<custom:write property="month" name="deliverysinfo" nbsp="true"/></td>
            <td>&nbsp;<custom:write property="dealercode" name="deliverysinfo" nbsp="true"/></td>
			<td>&nbsp;<custom:write property="dealername" name="deliverysinfo" nbsp="true"/></td>
			<td>&nbsp;<custom:write property="prarentareaname" name="deliverysinfo" nbsp="true"/></td>
			<td>&nbsp;<custom:write property="productcode" name="deliverysinfo" nbsp="true"/></td> 
            <td>&nbsp;<custom:write property="productname" name="deliverysinfo" nbsp="true"/></td>          
            <td>&nbsp;<custom:write property="specifications" name="deliverysinfo" nbsp="true"/></td>
			<td>&nbsp;<custom:write property="pakages" name="deliverysinfo" nbsp="true"/></td>
			<td>&nbsp;<custom:write property="salesqty" name="deliverysinfo" nbsp="true"/></td>
            <td>&nbsp;<custom:write property="price" name="deliverysinfo" nbsp="true"/></td>
            <td>&nbsp;<custom:write property="amount" name="deliverysinfo" nbsp="true"/></td>
            <td>&nbsp;<custom:write property="businessdate" name="deliverysinfo" nbsp="true"/></td>
       	</tr>
      </logic:iterate>
</table>
